package com.yc.test.repository;

import com.yc.test.entity.File;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

public interface DocumentRepository extends MongoRepository<File, String> {

    @Query("{},{\"file.url\":1}")
    public List<File> getFileList();
}
